package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 处方详情对象 PrescriptionDetailed
 *
 * @author ruoyi
 * @date 2023-07-04
 */


@TableName("PrescriptionDetailed")
@ApiModel(value = "PrescriptionDetailed对象", description = "处方详情")
public class PrescriptionDetailed implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Excel(name = "id")
    @ApiModelProperty("id")
    @TableId(value = "Id", type = IdType.AUTO)
    private Long Id;

    /**
     * 成药处方id
     */
    @Excel(name = "成药处方id")
    @ApiModelProperty("成药处方id")
    @TableField("PrescriptionId")
    private Long PrescriptionId;

    /**
     * 药品id
     */
    @Excel(name = "药品id")
    @ApiModelProperty("药品id")
    @TableField("DrugsId")
    private Long DrugsId;

    /**
     * 用法
     */
    @Excel(name = "用法")
    @ApiModelProperty("用法")
    @TableField("Rules")
    private String Rules;

    /**
     * 用量
     */
    @Excel(name = "用量")
    @ApiModelProperty("用量")
    @TableField("Dosage")
    private String Dosage;

    /**
     * 频次
     */
    @Excel(name = "频次")
    @ApiModelProperty("频次")
    @TableField("Frequency")
    private String Frequency;

    /**
     * 单价
     */
    @Excel(name = "单价")
    @ApiModelProperty("单价")
    @TableField("Price")
    private BigDecimal Price;

    @JsonProperty("Id")
    public Long getId() {
        return Id;
    }

    public void setId(Long Id) {
        this.Id = Id;
    }

    @JsonProperty("PrescriptionId")
    public Long getPrescriptionId() {
        return PrescriptionId;
    }

    public void setPrescriptionId(Long PrescriptionId) {
        this.PrescriptionId = PrescriptionId;
    }

    @JsonProperty("DrugsId")
    public Long getDrugsId() {
        return DrugsId;
    }

    public void setDrugsId(Long DrugsId) {
        this.DrugsId = DrugsId;
    }

    @JsonProperty("Rules")
    public String getRules() {
        return Rules;
    }

    public void setRules(String Rules) {
        this.Rules = Rules;
    }

    @JsonProperty("Dosage")
    public String getDosage() {
        return Dosage;
    }

    public void setDosage(String Dosage) {
        this.Dosage = Dosage;
    }

    @JsonProperty("Frequency")
    public String getFrequency() {
        return Frequency;
    }

    public void setFrequency(String Frequency) {
        this.Frequency = Frequency;
    }

    @JsonProperty("Price")
    public BigDecimal getPrice() {
        return Price;
    }

    public void setPrice(BigDecimal Price) {
        this.Price = Price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("Id", getId())
                .append("PrescriptionId", getPrescriptionId())
                .append("DrugsId", getDrugsId())
                .append("Rules", getRules())
                .append("Dosage", getDosage())
                .append("Frequency", getFrequency())
                .append("Price", getPrice())
                .toString();
    }
}

